import { Component, OnInit, OnDestroy} from '@angular/core';
import {EventSource, EventService} from '../services/event.service'

import {ChatService} from '../services/chat.service'
import {User} from '../entity/TT'
import { NGXLogger } from 'ngx-logger';

@Component({
  selector: 'app-workbench',
  templateUrl: './workbench.component.html',
  styleUrls: ['./workbench.component.scss']
})
export class WorkbenchComponent implements OnInit, OnDestroy {

  constructor(
    private log: NGXLogger,
    private chatService: ChatService,
              private eventService: EventService)
              {
                this.log.debug("WorkbenchComponent...")
               }

  ngOnInit() {

    this.log.debug("WorkbenchComponent ngOnInit...")


  }

  ngOnDestroy(){
    this.chatService.destory();
  }

  getToggledChat() {
    return this.eventService.toggledChat;
  }

}
